package com.zbs.framework.pay.util;

import java.io.File;
import java.io.IOException;

public class FaviconUtil {

    public static String getFaviconPath(){
        String name = "favicon.%s";
        File jpg = new File(String.format(name,"jpg"));// 参数为空
        File png = new File(String.format(name,"png"));// 参数为空
        try {
            if (jpg.exists()){
                return jpg.getCanonicalPath();
            }
            if (png.exists()){
                return png.getCanonicalPath();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "";
    }
}
